<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <!--支付状态-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pay_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input  id="c-pay_status" name="row[pay_status]" type="hidden" value="{$row.pay_status}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-pay_status" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success {eq name="$row.pay_status" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
            </a>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}" disabled>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_type')}:</label>
        <div class="col-xs-12 col-sm-8">
<!--            <input id="c-goods_type" data-rule="required" class="form-control" name="row[goods_type]" type="text" value="{$row.goods_type|htmlentities}">-->

            <div class="radio">
                <label>
                    <input disabled type="radio" name="row[goods_type]" value="categories" {if($row.goods_type == 'categories')} checked {/if} >
                    栏目
                </label>
                <label>
                    <input disabled type="radio" name="row[goods_type]" value="articles" {if($row.goods_type == 'articles')} checked {/if} >
                    文章
                </label>
            </div>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">所购商品:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-table_name" data-rule="" class="form-control" name="" type="text" value="{$row.table_name_text|htmlentities}" disabled>
        </div>
    </div>

<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_id')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-goods_id" data-rule="required"  class="form-control" name="row[goods_id]" type="text" value="{$row.goods_id|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_num" data-rule="required" class="form-control" name="row[order_num]" type="text" value="{$row.order_num|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pay_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pay_num" class="form-control" name="row[pay_num]" type="text" value="{$row.pay_num|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" data-rule="required" class="form-control" step="0.01" name="row[price]" type="number" value="{$row.price|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cash_fee')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cash_fee" class="form-control" step="0.01" name="row[cash_fee]" type="number" value="{$row.cash_fee|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Membership_duration')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-membership_duration" data-rule="required" class="form-control" name="row[membership_duration]" type="number" value="{$row.membership_duration|htmlentities}" disabled>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pay_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pay_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[pay_time]" type="text" value="{$row.pay_time}" disabled>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
